<template>
<div class="main">
<div class="Breadcrumb">

</div>
  <el-table
    :data="tableData"
    border
    style="width: 100% ">
    <el-table-column
      prop="username"
      label="登入账户"
      width="180">
    </el-table-column>
    <el-table-column
      prop="lastLogin.ip"
      label="上次登入ip"
      width="">
    </el-table-column>
    <el-table-column
      prop="lastLogin.loginTime"
      sortable
      label="上次登入时间">
    </el-table-column>
    <el-table-column
      prop="nowLogin.ip"
      label="本次登入ip">
    </el-table-column>
    <el-table-column
      prop="nowLogin.loginTime"
      label="本次登入时间">
    </el-table-column>
  </el-table>

  </div>
</template>

<script>
import * as api from "@/api/stu";
  export default {
    meta:{
      title:'glsy',
      name:'管理首页',
      icon:"iconfont icon-shouye1"
    },
    data() {
      return {
        tableData: []
      }
    },
    created () {
      this.getLogin()
    },
    methods: {
      getLogin(){
        api.getLoginApi()
        .then(res =>{
          this.tableData=res.data.data
        })
      }
    }
  }
</script>
<style lang="less" scoped>
 #app{
        .layout-container{
            .el-container{
                .is-vertical{
                    .el-main{
                        .main{
                            line-height: 14px;
                            font-size: 14px;
                            text-align: left;
                            .Breadcrumb{
                                margin: 20px 0 30px 0;
                                .Breadcrumb__item:nth-of-type(1){
                                  font-weight: 900;
                                }
                            }
                             /deep/ .el-table{
                                  .el-table__cell{
                                    text-align: center;
                                  }
                            }
                       

                        }
                    }
                }
            }
        }
}

</style>